import request from '@/utils/request'

// 查询SQL审计列表
export function listSqlLog(query) {
  return request({
    url: '/system/sqlLog/list',
    method: 'get',
    params: query
  })
}

// 删除SQL审计
export function delSqlLog(sqlId) {
  return request({
    url: '/system/sqlLog/' + sqlId,
    method: 'delete'
  })
}

// 清空SQL审计
export function cleanSqlLog() {
  return request({
    url: '/system/sqlLog/clean',
    method: 'delete'
  })
}
